LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)


LOCAL_SRC_FILES += \
	$(LOCAL_PATH)/game_jni.cpp \
	$(LOCAL_PATH)/glrenderer.cpp \
	$(LOCAL_PATH)/videodecode.cpp

LOCAL_SRC_FILES += $(LOCAL_PATH)/srs_librtmp.cpp 
	
LOCAL_C_INCLUDES := $(JNI_H_INCLUDE) \
	$(LOCAL_PATH)/ffmpeg \
	$(LOCAL_PATH)/common \
	$(LOCAL_PATH)/librtmp
	
LOCAL_MODULE := game_jni
#LOCAL_PRELINK_MODULE := false
LOCAL_CFLAGS := -D__STDC_CONSTANT_MACROS -DANDROID -frtti -I$(LOCAL_PATH)/ffmpeg/include -DGL_GLEXT_PROTOTYPES
LOCAL_LDLIBS := -L$(LOCAL_PATH)/ffmpeg/lib -lavcodec -lavutil -llog -lGLESv2 -lEGL -lGLESv1_CM -landroid

include $(BUILD_SHARED_LIBRARY)
